sf: Add SPI protection mechanism from the kernel
authorFabio Estevam <[email protected]>
Thu, 5 Nov 2015 14:43:41 +0000 (12:43 -0200)
committerTom Rini <[email protected]>
Thu, 5 Nov 2015 21:47:05 +0000 (16:47 -0500)
commit41b358d7a7c9f29eca4a439fba0ae679100a9ad5
tree0a0b551ae6184c239233ca92a8368ab4ff3cfab7
parent2d2f490dd594a9a3fcf3649f572e910771007962
sf: Add SPI protection mechanism from the kernel

Add the SPI NOR protection mechanism from the kernel.

This code is based on the work from
Brian Norris <[email protected]>
Here is the commit details:
"mtd: spi-nor: refactor block protection functions"
(sha1: 62593cf40b23b523b9fc9334ca61ba6c595ebb09)

Signed-off-by: Fabio Estevam <[email protected]>
Signed-off-by: Jagan Teki <[email protected]>
Reviewed-by: Tom Rini <[email protected]>
Reviewed-by: Heiko Schocher <[email protected]>
Reviewed-by: Jagan Teki <[email protected]>
Signed-off-by: Fabio Estevam <[email protected]>
drivers/mtd/spi/sf_internal.h
drivers/mtd/spi/sf_ops.c